package ATM.dao;

import ATM.domain.Account;

import java.util.ArrayList;

public class ATMDao {
    private static ArrayList<Account> list = new ArrayList<>();


    public boolean createAccount(Account account) {
        list.add(account);
        return true;
    }

    public ArrayList<Account> giveList() {
        return list;
    }

    public boolean deleteAccount(Account loginAcc) {
        list.remove(loginAcc);
        return true;
    }
}
